package com.afdor.rws.core.utils;

/**
 * 保存值得辅助类
 *
 * @author 悭梵
 * @date Created in 2018-08-03 22:15
 */
public class Holder<T> {

    public Holder() {

    }

    public Holder(T value) {
        this.value = value;
    }

    private volatile T value;

    public void set(T value) {
        this.value = value;
    }

    public T get() {
        return value;
    }

}